//
//  RadioPlayViewController.h
//  PetTown
//
//  Created by lanou3g on 15/6/1.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RadioPlayView.h"
#import <AVFoundation/AVFoundation.h>
#import <MediaPlayer/MediaPlayer.h>
@interface RadioPlayViewController : UIViewController <AVAudioPlayerDelegate>
@property(nonatomic,strong)RadioPlayView * radioPV;
@property(nonatomic,strong)AVPlayer * audioPlayer;//播放器
@property (weak ,nonatomic) NSTimer *timer;//进度更新定时器
@property(nonatomic,strong)NSString * urlStr;//音乐地址
@property(nonatomic,strong) AVPlayerItem * avPlayerItem;//item
@property(nonatomic,strong)NSString * tingid;//url拼接
@property(nonatomic,assign)float totalDuration;
@property(nonatomic,assign)float currentDuration;
@property(nonatomic,assign)id mTimeObserver;
@property(nonatomic,strong)NSMutableArray * radioUrlArray;//播放队列
@property (nonatomic,strong)NSMutableArray * titleArray;//播放页面的title队列
@property(nonatomic,strong)NSMutableArray * radioImgUrlArray;//播放页面的图片队列
@property(nonatomic,assign)NSInteger index;


@end
